<template>
  <div>
    <a-input @change="onChange" v-model="args"></a-input>
  </div>
</template>

<script>
  export default {
    name: "RemoteAddrEdit",
    props: ["value"],
    data() {
      return {
        args: ""
      }
    },
    created() {
      this.init();
    },
    methods: {
      init() {
        if (this.value.predicateArgs) {
          this.args=(JSON.parse(this.value.predicateArgs))._genkey_0
        }
      },
      onChange() {
        var obj={
          _genkey_0:this.args,
        };
        this.value.predicateArgs=JSON.stringify(obj);
      }

    },
  }
</script>

<style scoped>

</style>